﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace XYAC.Framework.MonitorTireMaterialOnline.Entities
{
    [Table("WeightData")]
    public class WeightData : EntityBase<int?>
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key]
        public override int? ID { get; set; }
        /// <summary>
        /// 重量设定值
        /// </summary>
        public float WeightSD { get; set; }
        /// <summary>
        /// 重量上限
        /// </summary>
        public float WeightTolUp { get; set; }
        /// <summary>
        /// 重量下限
        /// </summary>
        public float WeightTolDown { get; set; }
        /// <summary>
        /// 重量报警上线
        /// </summary>
        public float WeightAlmUp { get; set; }
        /// <summary>
        /// 重量报警下限
        /// </summary>
        public float WeightAlmDown { get; set; }
        /// <summary>
        /// 检测重量
        /// </summary>
        public float Weight { get; set; }
        /// <summary>
        /// 记录时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 规格号
        /// </summary>
        public string ProfileName { get; set; }
        /// <summary>
        /// 规格类型
        /// </summary>
        public Int32 ProfileType { get; set; }
        /// <summary>
        /// 班组
        /// </summary>
        public string BanZu { get; set; }
        /// <summary>
        /// 检测结果
        /// </summary>
        public string TestResult { get; set; }

        [NotMapped]
        [Obsolete("This property should not be used.", true)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Browsable(false)]
        [JsonIgnore]
        public override bool? IsDeleted { get => base.IsDeleted; set => base.IsDeleted = value; }
    }
}
